public class Test02{
    public static void main(String[] args){
        double dayMoney = 2.5;
        double totalMoney = 0;
        int dayCount = 0;
        int result = 100;
        while(true){
            totalMoney += dayMoney;
            dayCount++;
            System.out.println("The "+dayCount+" days"+","+"xiao fang saves money"+totalMoney);
            if(dayCount % 5 == 0){
                totalMoney -= 6;
                System.out.println("The "+dayCount+" days"+","+"xiao fang runs 6 yuan");
            }
            if(totalMoney >= result){
                break;
            }
        }
        System.out.println("Through "+dayCount+" days"+","+"xiaofang saves 100 yuan.");
    }
}